package com.lipeng.bean;

import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

public class Game {
    private Integer gid;

    private String gname;

    private String gintro;

    private String gpic;

    private String gplace;

    private Integer gprice;

    private String gtime;

    private MultipartFile file;

    public Game(){
    }

    public Game(Integer gid, String gname, String gintro, String gpic, String gplace, Integer gprice, String gtime, MultipartFile file) {
        this.gid = gid;
        this.gname = gname;
        this.gintro = gintro;
        this.gpic = gpic;
        this.gplace = gplace;
        this.gprice = gprice;
        this.gtime = gtime;
        this.file = file;
    }


    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname == null ? null : gname.trim();
    }

    public String getGintro() {
        return gintro;
    }

    public void setGintro(String gintro) {
        this.gintro = gintro == null ? null : gintro.trim();
    }

    public String getGpic() {
        return gpic;
    }

    public void setGpic(String gpic) {
        this.gpic = gpic == null ? null : gpic.trim();
    }

    public String getGplace() {
        return gplace;
    }

    public void setGplace(String gplace) {
        this.gplace = gplace == null ? null : gplace.trim();
    }

    public Integer getGprice() {
        return gprice;
    }

    public void setGprice(Integer gprice) {
        this.gprice = gprice;
    }

    public String getGtime() {
        return gtime;
    }

    public void setGtime(String gtime) {
        this.gtime = gtime;
    }
}